<template>
  <div class="logo-container" @click="test()">
    LOGO组件<span>{{ txt }}</span>
  </div>
</template>

<script>
export default {
  // name: 'HelloWorld',
  props: ['txt'],
  data() {
    return {
      companyInfo: {},
      siteInfo: {}
    }
  },
  mounted() {
    this.getCompany();
  },
  methods: {
    getCompany: function (val) {
      fetch('https://hyh-hrz.cn/pbootcms/api.php/cms/company').then(response => response.json()).then(json => {
        console.log(json);
      });
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
